package cn.tedu.micro.demo.order.feign;

import cn.tedu.micro.demo.common.pojo.protocol.JsonResult;
import cn.tedu.micro.demo.common.pojo.vo.GunInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value="device-demo")
public interface DeviceClient {

    @GetMapping("/device/gun/info/{gunId}")
    public JsonResult<GunInfoVO> gunDetail(@PathVariable Long gunId);


    @PostMapping("/device/test")
    public JsonResult<String> test(Integer id);
}
